package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author durui123
 * @since 2018-04-06
 */
@TableName("receive_goods_information")
public class ReceiveGoodsInformation extends Model<ReceiveGoodsInformation> {

    private static final long serialVersionUID = 1L;
    
    //非数据库字段，用于判断该数据是否是从数据库中获取的，如果不为空则是从数据库中获取的
    @TableField(exist = false)
    private String goodsID;
    public String getGoodsID() {
		return goodsID;
	}
	public void setGoodsID(String goodsID) {
		this.goodsID = goodsID;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	//非数据库字段，用于装车登记获取库存信息的操作
	@TableField(exist = false)
	private ReceiveGoodsStock receiveGoodsStock;
	
	public ReceiveGoodsStock getReceiveGoodsStock() {
		return receiveGoodsStock;
	}
	public void setReceiveGoodsStock(ReceiveGoodsStock receiveGoodsStock) {
		this.receiveGoodsStock = receiveGoodsStock;
	}

	@TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("foreign_key_contract_number")
    private String foreignKeyContractNumber;
    @TableField("receive_goods_id")
    private String receiveGoodsId;
    @TableField("receive_goods_name")
    private String receiveGoodsName;
    @TableField("receive_goods_model")
    private String receiveGoodsModel;
    @TableField("receive_goods_package")
    private String receiveGoodsPackage;
    @TableField("receive_goods_quantity")
    private Double receiveGoodsQuantity;
    @TableField("receive_goods_weight")
    private Double receiveGoodsWeight;
    @TableField("receive_goods_volume")
    private Double receiveGoodsVolume;
    @TableField("receive_goods_freight")
    private Double receiveGoodsFreight;
    @TableField("receive_goods_messagefee")
    private Double receiveGoodsMessagefee;
    @TableField("receive_goods_pickup_charge")
    private Double receiveGoodsPickupCharge;
    @TableField("receive_goods_warehouse_name")
    private String receiveGoodsWarehouseName;
    @TableField("receive_goods_remark")
    private String receiveGoodsRemark;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getForeignKeyContractNumber() {
        return foreignKeyContractNumber;
    }

    public void setForeignKeyContractNumber(String foreignKeyContractNumber) {
        this.foreignKeyContractNumber = foreignKeyContractNumber;
    }

    public String getReceiveGoodsId() {
        return receiveGoodsId;
    }

    public void setReceiveGoodsId(String receiveGoodsId) {
        this.receiveGoodsId = receiveGoodsId;
    }

    public String getReceiveGoodsName() {
        return receiveGoodsName;
    }

    public void setReceiveGoodsName(String receiveGoodsName) {
        this.receiveGoodsName = receiveGoodsName;
    }

    public String getReceiveGoodsModel() {
        return receiveGoodsModel;
    }

    public void setReceiveGoodsModel(String receiveGoodsModel) {
        this.receiveGoodsModel = receiveGoodsModel;
    }

    public String getReceiveGoodsPackage() {
        return receiveGoodsPackage;
    }

    public void setReceiveGoodsPackage(String receiveGoodsPackage) {
        this.receiveGoodsPackage = receiveGoodsPackage;
    }

    public Double getReceiveGoodsQuantity() {
        return receiveGoodsQuantity;
    }

    public void setReceiveGoodsQuantity(Double receiveGoodsQuantity) {
        this.receiveGoodsQuantity = receiveGoodsQuantity;
    }

    public Double getReceiveGoodsWeight() {
        return receiveGoodsWeight;
    }

    public void setReceiveGoodsWeight(Double receiveGoodsWeight) {
        this.receiveGoodsWeight = receiveGoodsWeight;
    }

    public Double getReceiveGoodsVolume() {
        return receiveGoodsVolume;
    }

    public void setReceiveGoodsVolume(Double receiveGoodsVolume) {
        this.receiveGoodsVolume = receiveGoodsVolume;
    }

    public Double getReceiveGoodsFreight() {
        return receiveGoodsFreight;
    }

    public void setReceiveGoodsFreight(Double receiveGoodsFreight) {
        this.receiveGoodsFreight = receiveGoodsFreight;
    }

    public Double getReceiveGoodsMessagefee() {
        return receiveGoodsMessagefee;
    }

    public void setReceiveGoodsMessagefee(Double receiveGoodsMessagefee) {
        this.receiveGoodsMessagefee = receiveGoodsMessagefee;
    }

    public Double getReceiveGoodsPickupCharge() {
        return receiveGoodsPickupCharge;
    }

    public void setReceiveGoodsPickupCharge(Double receiveGoodsPickupCharge) {
        this.receiveGoodsPickupCharge = receiveGoodsPickupCharge;
    }

    public String getReceiveGoodsWarehouseName() {
        return receiveGoodsWarehouseName;
    }

    public void setReceiveGoodsWarehouseName(String receiveGoodsWarehouseName) {
        this.receiveGoodsWarehouseName = receiveGoodsWarehouseName;
    }

    public String getReceiveGoodsRemark() {
        return receiveGoodsRemark;
    }

    public void setReceiveGoodsRemark(String receiveGoodsRemark) {
        this.receiveGoodsRemark = receiveGoodsRemark;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ReceiveGoodsInformation{" +
        "id=" + id +
        ", foreignKeyContractNumber=" + foreignKeyContractNumber +
        ", receiveGoodsId=" + receiveGoodsId +
        ", receiveGoodsName=" + receiveGoodsName +
        ", receiveGoodsModel=" + receiveGoodsModel +
        ", receiveGoodsPackage=" + receiveGoodsPackage +
        ", receiveGoodsQuantity=" + receiveGoodsQuantity +
        ", receiveGoodsWeight=" + receiveGoodsWeight +
        ", receiveGoodsVolume=" + receiveGoodsVolume +
        ", receiveGoodsFreight=" + receiveGoodsFreight +
        ", receiveGoodsMessagefee=" + receiveGoodsMessagefee +
        ", receiveGoodsPickupCharge=" + receiveGoodsPickupCharge +
        ", receiveGoodsWarehouseName=" + receiveGoodsWarehouseName +
        ", receiveGoodsRemark=" + receiveGoodsRemark +
        "}";
    }
}
